package com.whcoding.test.dao;

import com.whcoding.test.example.crt.po.VehicleTrackMainPO;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface VehicleTrackMainDao extends JpaRepository<VehicleTrackMainPO, Integer> {


    /**
     * 查询轨迹主数据
     * @param vehicleId 车辆id
     * @param vendorWaybillCode 供应商运单Code
     * @param deleted 是否删除 1 删除 0 未删除
     * @return
     */
    VehicleTrackMainPO findByVehicleIdAndVendorWaybillCodeAndDeleted(Integer vehicleId,String vendorWaybillCode,Integer deleted);

    List<VehicleTrackMainPO> findAllByVehicleIdAndVendorWaybillCodeAndDeleted(Integer vehicleId, String vendorWaybillCode, Integer deleted);
}
